package cn.pojo;

import java.io.Serializable;
import java.util.Date;

//积分记录类
public class Score implements Serializable {
	private static final long serialVersionUID = -9203584277558994438L;
	private Integer id;// 积分记录的id
	private Date createDate;// 积分记录的创建时间
	private String message;// 积分记录信息
	private Integer num;// 积分的余额
	private Integer mid;// 会员编号

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getMid() {
		return mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Score other = (Score) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Score [id=" + id + ", createDate=" + createDate + ", message=" + message + ", num=" + num + ", mid=" + mid + "]";
	}

}
